Speed up most calls to 'stat' and 'lstat' on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Fri, 14 Dec 2012 14:05:01 +0000 (16:05 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 14 Dec 2012 14:05:01 +0000 (16:05 +0200)
commitd4a5d1a11bd916b3dac170f5b60ca45cd80594ee
tree47635bac8065f165a6d7e2433ffddb567c626260
parentd5a7446b0e14251b16e41d3a3e81a2ccfd402552
Speed up most calls to 'stat' and 'lstat' on MS-Windows.

 src/w32.c (stat_worker): If w32_stat_get_owner_group is zero, do not
 try to get accurate owner and group information from NT file
 security APIs.  This is to make most callers of 'stat' and
 'lstat', which don't need that information, much faster.
 src/dired.c (Ffile_attributes) [WINDOWSNT]: Set
 w32_stat_get_owner_group to a non-zero value, to request accurate
 owner and group information from 'lstat'.

 nt/inc/sys/stat.h: Declare w32_stat_get_owner_group.
nt/ChangeLog
nt/inc/sys/stat.h
src/ChangeLog
src/dired.c
src/w32.c